/* eslint-disable simple-import-sort/imports */
import TDesign from 'tdesign-vue-next';
import { createApp } from 'vue';
import { directiveRole, directivePerms } from './utils/directives';
import App from './App.vue';
import router from './router';
import { store } from './store';
import i18n from './locales';

import 'tdesign-vue-next/es/style/index.css';
import '@/style/index.less';
import './permission';

const app = createApp(App);
// 屏蔽控制台warn警告
app.config.warnHandler = () => null;
app.use(TDesign);
app.use(store);
app.use(router);
app.use(i18n);
app.directive('hasRole', directiveRole);
app.directive('hasPerms', directivePerms);

app.mount('#app');
